﻿{% extends "layout/layouthead.html" %}

{% block content %}
{% load staticfiles %}
<script src="{% static 'app/scripts/Base/jquery.easyui.min.js' %}"></script>
<script src="{% static 'app/scripts/PageHelper/iframeTools.source.js' %}"></script>
<link rel="stylesheet" type="text/css" href="{% static 'app/content/newSystem.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'app/styles/controls/tree.css' %}">
<div id="app">
    <input type="hidden" id="initData" value='{"name": "乔安生"}' />
    <div class="h2tit">
        <span class="r">
            <a name="tempInit">tempInit</a>
            <a href="javascript:;" name="addDepartment" class="add-department">
                <i class="icon-added"></i>新增部门
            </a>
            <a href="javascript:;" onclick="estateDataFind();">楼盘数据反查</a>
            <a href="javascript:;" class="refreshData">刷新部门权限设置</a>
            <a href="javascript:;" onclick="transferDepartment();">整组异动</a>       
            &nbsp;
        </span>
        <h2><i></i>组织结构</h2>
    </div>
<div class="clearfix">
    <div class="role-left l">
        <div class="tree-head clearfix">
            <span class="r h26lh26">
                <a href="javascript:void(0)" onclick="javascript:$('#tt').tree('expandAll');">展开</a>
                <a href="javascript:void(0)" onclick="javascript:$('#tt').tree('collapseAll');">折叠</a>
            </span>
            <input type="text" id="txtDeptName" class="ipt w124 ac_input" value="" onkeydown="enterPress(event)" autocomplete="off">
            <input type="hidden" id="hidSearchDeptId" value="">
            <input type="hidden" id="hidDeptId" value="">
            <input type="hidden" id="hidAreKeytIds" value="">
            <input type="hidden" id="hidEstateKeytIds" value="">
            <input type="hidden" id="hidEstateCheckNum" value="">
            <input type="hidden" id="hidAreCheckNum" value="">
            <input type="button" id="btnSearch" class="btn-red" value="搜索">
        </div>
        <div class="easyui-panel-wrapper">
            <img src="/static/app/img/loading.gif" id="centerLoading" style="display: none;">
            
            <div class="panel" style="display: block;">
			<div class="easyui-panel mt10 panel-body panel-body-noheader" title="" style="width: 288px;">
                <ul id="tt" class="easyui-tree tree tree-lines" data-options=""><li>
					<div id="_easyui_tree_1" class="tree-node tree-root-one tree-node-last">
	<span class="tree-hit tree-expanded">
	</span>
	<span class="tree-icon tree-folder tree-folder-open ">
	</span>
	<span class="tree-title">[99]系统管理组
	</span>
</div>
</li>
</ul>
<ul style="display:block">
<li>
<div id="_easyui_tree_2" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9902]支持组
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_3" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9903]运维组
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_4" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9904]测试部门C3
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_5" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-hit tree-expanded">
	</span>
	<span class="tree-icon tree-folder tree-folder-open ">
	</span>
	<span class="tree-title">[9905]敏捷测试
	</span>
</div>
<ul style="display:block">
<li>
<div id="_easyui_tree_6" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-hit tree-expanded">
	</span>
	<span class="tree-icon tree-folder tree-folder-open ">
	</span>
	<span class="tree-title">[990501]测试部门01(删除)
	</span>
</div>
<ul style="display:block">
<li>
<div id="_easyui_tree_7" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-hit tree-expanded">
	</span>
	<span class="tree-icon tree-folder tree-folder-open ">
	</span>
	<span class="tree-title">[99050101]测试部门02(删除)
	</span>
</div>
<ul style="display:block">
<li>
<div id="_easyui_tree_8" class="tree-node tree-node-last">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-joinbottom">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9905010104]测试部门05(删除)
	</span>
</div>
</li>
</ul>
</li>
<li>
<div id="_easyui_tree_9" class="tree-node tree-node-last">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-joinbottom">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[99050102]测试部门03(删除)
	</span>
</div>
</li>
</ul>
</li>
<li>
<div id="_easyui_tree_10" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-hit tree-expanded">
	</span>
	<span class="tree-icon tree-folder tree-folder-open ">
	</span>
	<span class="tree-title">[990503]敏捷测试123
	</span>
</div>
<ul style="display:block">
<li>
<div id="_easyui_tree_11" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[99050301]测试
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_12" class="tree-node tree-node-last">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-joinbottom">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[99050302]部门资源cs
	</span>
</div>
</li>
</ul>
</li>
<li>
<div id="_easyui_tree_13" class="tree-node tree-node-last">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-line">
	</span>
	<span class="tree-indent tree-joinbottom">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[990504]敏捷测试123
	</span>
</div>
</li>
</ul>
</li>
<li>
<div id="_easyui_tree_14" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9907]部门资源c2s
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_15" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9908]部门资源c1d
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_16" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9909]测试csf部门
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_17" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9910]测试csf1部门
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_18" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9911]部门资源cs(删除)
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_19" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9912]测试123q
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_20" class="tree-node">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-join">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9913]测试12wq
	</span>
</div>
</li>
<li>
<div id="_easyui_tree_21" class="tree-node tree-node-last">
	<span class="tree-indent">
	</span>
	<span class="tree-indent tree-joinbottom">
	</span>
	<span class="tree-icon tree-file ">
	</span>
	<span class="tree-title">[9914]测试12111
	</span>
</div>
</li>
</ul>
</li>
</ul>
            </div></div>
        </div>
    </div>
    <div class="role-right">
        <!--列表 start-->
        <table id="grdDepartment" class="data-table w-all">
            <thead>
                <tr>
                    <th>部门编号</th>
                    <th>部门名称</th>
                    <th>部门负责人</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody></tbody>
        </table>
        <!--列表 end-->
        <div class="mt10" id="tabOrg" style="display: none;">
            <div class="tab-hd">
                <ul class="tab-nav" id="titleid"></ul>
            </div>
            <div class="tab-bd p10" id="contentdiv"></div>
        </div>
    </div>
</div>

    <!--绑定部门的权限-->
    <div style="display: none">
        <!--绑定部门的删除和编辑权限-->
        <input type="hidden" value="True" id="hideditOrg">
        <input type="hidden" value="True" id="hiddeleteOrg">
        <!--绑定部门的设置数据范围权限-->
        <input type="hidden" value="True" id="hidDeptDataAdd">
        <input type="hidden" value="True" id="hidDeptDatagSearch">
        <input type="hidden" value="True" id="hidDeptDataDelete">
        <input type="hidden" value="True" id="hidDeptDataQuery">
        <!--绑定部门的部门设置权限-->
        <input type="hidden" value="True" id="hidDeptSet">
    </div>
</div>

    <script type="text/jscript" charset="gbk" src="{% static 'mobile/systemapp/scripts/departments.js' %}"></script>
{% endblock %}
{% block scripts %}
    {% load staticfiles %}
{% endblock %}
